package com.wu.yygh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName ServiceHospApplication
 * @Author 浮生光
 * @Date 2022/6/25 23:41
 * @Description ServiceHospApplication
 * @Version 1.0
 */
// @MapperScan("com.yjiewei.yygh.hospital.mapper") // 注意不要添加到类，这里扫描的是包文件 也可以使用配置类的方式 com.yjiewei.yygh.hospital.config.HospitalConfig
@ComponentScan(basePackages = "com.wu") // 这里是想扫描到 swagger2 的配置
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.wu") // 指定某个包用feign调用
//@MapperScan("com.wu.yygh.hosp.mapper")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
